package com.woniu.mapper;

import com.woniu.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface UserMapper {
    //查询所有
    List<User> findAll();
    //根据id查询
    User findById(Integer id);
    List<User> findByCondition(User user);
    User findByName(@Param("name") String name);
    Integer add(User user);
    Integer update(User user);
    Integer delete(Integer id);

}
